﻿using Xtensive.Orm;

namespace SharedKeyGenerator.Model
{
    [HierarchyRoot]
    public class Customer : Entity
    {
        [Field, Key]
        public int Id { get; set; }

        [Field]
        public string CustomerName { get; set; }

        public Customer(Session session)
            : base(session)
        {}
    }

    [HierarchyRoot]
    public class Product : Entity
    {
        [Field, Key]
        public int Id { get; set; }

        [Field]
        public string ProductName { get; set; }

        public Product(Session session)
            : base(session) 
        {}
    }
}